package han.chensing.latos;

import com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application;
import com.badlogic.gdx.backends.lwjgl3.Lwjgl3ApplicationConfiguration;

import java.lang.reflect.Field;

// Please note that on macOS your application needs to be started with the -XstartOnFirstThread JVM argument
public class DesktopLauncher {
	public static void main (String[] arg) {
		Lwjgl3ApplicationConfiguration config = new Lwjgl3ApplicationConfiguration();
		config.setForegroundFPS(0);
		config.setTitle("Latos");
		config.setWindowedMode(V.WIDTH/3,V.HEIGHT/3);
		config.setResizable(true);
		try {
			Class<Lwjgl3ApplicationConfiguration> configurationClass =
					Lwjgl3ApplicationConfiguration.class;
			Field samples = configurationClass.getDeclaredField("samples");
			samples.setAccessible(true);
			samples.setInt(config,5);
		}catch (Exception e){
			e.printStackTrace();
		}
		new Lwjgl3Application(new GdxGame(), config);
	}
}
